/*
 * @Descripttion:
 * @Author: liZhaoBo
 * @Date: 2024-04-29 09:53:39
 * @LastEditors: fangshengchu
 * @LastEditTime: 2024-06-17 10:42:42
 */
import { DEFAULT_LAYOUT } from '@/router/routes/base';
import { AppRouteRecordRaw } from '@/router/routes/types';

const BaseComponent: AppRouteRecordRaw = {
  path: '/both-component',
  name: 'both-component',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '共通组件',
    requiresAuth: true,
    icon: 'icon-dashboard',
    order: 1,
  },
  children: [
    {
      path: 'base-component',
      name: 'base-component',
      component: () => import('@/common/views/baseComponent/index.vue'),
      meta: {
        locale: '基础组件',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'query-form',
      name: 'queryForm',
      component: () => import('@/common/views/baseComponent/query-form.vue'),
      meta: {
        locale: 'query-form(查询表单)',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'table-container',
      name: 'tableContainer',
      component: () =>
        import('@/common/views/baseComponent/table-container.vue'),
      meta: {
        locale: 'table-container(table容器)',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'standard-table',
      name: 'standardTable',
      component: () =>
        import('@/common/views/baseComponent/standard-table.vue'),
      meta: {
        locale: 'standard-table(标准table)',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'query-page',
      name: 'queryPage',
      component: () => import('@/common/views/baseComponent/query-page.vue'),
      meta: {
        locale: 'query-page(查询page)',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'use-dialog',
      name: 'useDialog',
      component: () => import('@/common/views/baseComponent/use-dialog.vue'),
      meta: {
        locale: 'useDialog',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'content-model',
      name: 'contentModel',
      component: () => import('@/common/views/baseComponent/content-model.vue'),
      meta: {
        locale: 'contentModel',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'ntko',
      name: 'ntko',
      component: () => import('@/common/views/baseComponent/ntko.vue'),
      meta: {
        locale: 'ntko',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'split',
      name: 'split',
      component: () => import('@/common/views/baseComponent/split.vue'),
      meta: {
        locale: 'split',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default BaseComponent;
